/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui2android7cui;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Output Field Implementation</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui2android7cui.Adaptedaui2android7cuiPackage#getOutputFieldImplementation()
 * @model
 * @generated
 */
public enum OutputFieldImplementation implements Enumerator {
	/**
	 * The '<em><b>Text View</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TEXT_VIEW_VALUE
	 * @generated
	 * @ordered
	 */
	TEXT_VIEW(0, "TextView", "TextView"),

	/**
	 * The '<em><b>List View</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #LIST_VIEW_VALUE
	 * @generated
	 * @ordered
	 */
	LIST_VIEW(3, "ListView", "ListView"),

	/**
	 * The '<em><b>Image View</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #IMAGE_VIEW_VALUE
	 * @generated
	 * @ordered
	 */
	IMAGE_VIEW(4, "ImageView", "ImageView"),

	/**
	 * The '<em><b>Progress Bar</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PROGRESS_BAR_VALUE
	 * @generated
	 * @ordered
	 */
	PROGRESS_BAR(5, "ProgressBar", "ProgressBar"),

	/**
	 * The '<em><b>Ratting Bar</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RATTING_BAR_VALUE
	 * @generated
	 * @ordered
	 */
	RATTING_BAR(6, "RattingBar", "RattingBar");

	/**
	 * The '<em><b>Text View</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Text View</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TEXT_VIEW
	 * @model name="TextView"
	 * @generated
	 * @ordered
	 */
	public static final int TEXT_VIEW_VALUE = 0;

	/**
	 * The '<em><b>List View</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>List View</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #LIST_VIEW
	 * @model name="ListView"
	 * @generated
	 * @ordered
	 */
	public static final int LIST_VIEW_VALUE = 3;

	/**
	 * The '<em><b>Image View</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Image View</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #IMAGE_VIEW
	 * @model name="ImageView"
	 * @generated
	 * @ordered
	 */
	public static final int IMAGE_VIEW_VALUE = 4;

	/**
	 * The '<em><b>Progress Bar</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Progress Bar</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PROGRESS_BAR
	 * @model name="ProgressBar"
	 * @generated
	 * @ordered
	 */
	public static final int PROGRESS_BAR_VALUE = 5;

	/**
	 * The '<em><b>Ratting Bar</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Ratting Bar</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RATTING_BAR
	 * @model name="RattingBar"
	 * @generated
	 * @ordered
	 */
	public static final int RATTING_BAR_VALUE = 6;

	/**
	 * An array of all the '<em><b>Output Field Implementation</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final OutputFieldImplementation[] VALUES_ARRAY =
		new OutputFieldImplementation[] {
			TEXT_VIEW,
			LIST_VIEW,
			IMAGE_VIEW,
			PROGRESS_BAR,
			RATTING_BAR,
		};

	/**
	 * A public read-only list of all the '<em><b>Output Field Implementation</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<OutputFieldImplementation> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Output Field Implementation</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OutputFieldImplementation get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OutputFieldImplementation result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Output Field Implementation</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OutputFieldImplementation getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OutputFieldImplementation result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Output Field Implementation</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OutputFieldImplementation get(int value) {
		switch (value) {
			case TEXT_VIEW_VALUE: return TEXT_VIEW;
			case LIST_VIEW_VALUE: return LIST_VIEW;
			case IMAGE_VIEW_VALUE: return IMAGE_VIEW;
			case PROGRESS_BAR_VALUE: return PROGRESS_BAR;
			case RATTING_BAR_VALUE: return RATTING_BAR;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private OutputFieldImplementation(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //OutputFieldImplementation
